import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import NotesForAppUse from '@/components/notesForAppUse'
import ContactUs from '@/components/contactUs'
import UseTutorials from '@/components/useTutorials'
import AdminUseTutorials from '@/components/adminUseTutorials'
import MerchantPromotion from '@/components/merchantPromotion'
import HandbookOne from '@/components/handbookOne'
import HandbookTwo from '@/components/handbookTwo'


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'index',
            component: Index
        },
        {
            path: '/notesforappuse',
            name: 'notesforappuse',
            component: NotesForAppUse,
            meta: {
                title: 'app使用注意事项'
            }
        },
        {
            path: '/contactus',
            name: 'contactus',
            component: ContactUs,
            meta: {
                title: '联系我们'
            }
        },
        {
            path: '/usetutorials',
            name: 'usetutorials',
            component: UseTutorials,
            meta: {
                title: '使用教程'
            }
        },
        {
            path: '/adminusetutorials',
            name: 'adminusetutorials',
            component: AdminUseTutorials,
            meta: {
                title: '后台使用教程'
            }
        },
        {
            path: '/merchantpromotion',
            name: 'merchantpromotion',
            component: MerchantPromotion,
            meta: {
                title: '商户推广'
            }
        },
        {
            path: '/handbookone',
            name: 'handbookone',
            component: HandbookOne,
            meta: {
                title: '操作手册1'
            }
        },
        {
            path: '/handbooktwo',
            name: 'handbooktwo',
            component: HandbookTwo,
            meta: {
                title: '操作手册2'
            }
        }
    ]
})